package censor

import (
	"fmt"

	"github.com/Baidu-AIP/golang-sdk/aip/censor"
)

func Censor(res string) error {

	//如果是百度云ak sk,使用下面的客户端
	client := censor.NewCloudClient("ThTuNtbAaoA2DL1aD7qOp58d", "Ez9KiBLsig7nERtcfVhBiqCDytMq6HxK")
	res = client.TextCensor(res)
	fmt.Println(res)
	return nil

}
